﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using TestApiCall.User;
using Newtonsoft.Json;

namespace TestApiCall.Controllers
{
    [Route("api/[controller]")]
    [ApiController]
    public class UserController : ControllerBase
    {

        [HttpPost("GetUserInfo")]
        public IActionResult GetUserInfo([FromBody]UserInfo user)
        {
            return Ok(user);
        }

        [HttpGet("Test")]
        public string Test(string aa)
        {
            return "111" + aa;
        }

	    public class UserInfo
		{
			public string name { get; set; }
			public int age { get; set; }
			public bool sex { get; set; }
		}
    }
}